<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  // window.addEventListener("scroll", function(event) {
  //     alert("窗口滚动条滚动了!");
  // });
  // window.addEventListener("resize", function(event) {
  //     alert("窗口大小被重设了!");
  // });
</script>

</body>
</html>